package com.my.main.base.exception;

import com.my.main.base.entity.ResultCode;
import lombok.Getter;

/**
 * 自定义异常
 */
@Getter
public class CommonException extends Exception  {

    private ResultCode resultCode;
    private String mesg;

    public CommonException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }


    public CommonException(String mesg) {
        this.mesg = mesg;
    }
}
